package com.xsir.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author xsir
 * @date 2020/9/8
 */
public class JwtToken implements AuthenticationToken {
    private String jwt;

    public JwtToken(String jwt) {
        this.jwt = jwt;
    }

    @Override
    public Object getPrincipal() {
        return this.jwt;
    }

    @Override
    public Object getCredentials() {
        return jwt;
    }
    
    @Override
    public String toString() {
        return "jwt = " + jwt;
    }
}
